package com.shuai.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuai.model.vo.ProjectVO;
import com.shuai.model.vo.UserVO;

import java.util.List;
import java.util.Map;


public interface ProjectDao extends BaseMapper<ProjectVO> {
    List<ProjectVO> projectListOfIndex();

    List<ProjectVO> projectList(Map<String, Object> params);

    Map<String, Object> totalSize(Map<String, Object> params);

    List<Integer> selectProjectOfUserId(Map<String, Object> params);

    List<UserVO> selectProjectUser(Map<String, Object> params);

    List<UserVO> selectUserNotWorkInProject(int projectId);

    int deleteUserInProject(List<Integer> userId);

    int insertUserGroup(Map<String, Object> params);

    List<UserVO> selectUserOfProject(ProjectVO vo);

    int updateProject(ProjectVO projectVO);

    int updateTaskCompletion(int projectId);
}